package com.hualude.roadsign.service;

import com.hualude.roadsign.dto.DTRequestDto;
import com.hualude.roadsign.dto.DTResponseDto;
import com.hualude.roadsign.dto.MenuDto;

import java.util.List;

/**
 * Created by xu-jiaHui on 2017/4/9.
 */
public interface ActorMenuService {

    /**
     * @Description: 获取角色菜单用于DT
     * @Author: xu-jiaHui
     * @Date: 2017/4/9 14:30
     */
    public DTResponseDto getActorMenuByActorId(DTRequestDto dtRequestDto, Integer actorId) throws Exception;

    /**
     * @Description: 获取菜单列表用于选择
     * @Author: xu-jiaHui
     * @Date: 2017/4/9 15:56
     */
    public List<MenuDto> getMenu4List() throws Exception;

    /**
     * @Description: 根据AmId更新角色菜单
     * @Author: xu-jiaHui
     * @Date: 2017/4/9 16:39
     */
    public Integer updateActorMenuByAmId(Integer amId, Integer powerInsert, Integer powerDelete, Integer powerUpdate,
                                         Integer powerSelect, Integer powerCheck) throws Exception;

    /**
     * @Description: 根据角色id添加菜单
     * @Author: xu-jiaHui
     * @Date: 2017/4/9 16:47
     */
    public Integer addMenuByActorId(Integer actorId, String menuIds) throws Exception;

    /**
     * @Description: 通过amId删除菜单
     * @Author: xu-jiaHui
     * @Date: 2017/4/9 17:08
     */
    public Integer deleteActorMenuByAmId(Integer amId) throws Exception;


}
